package com.shire.shire_interface.service.massmsg;

import com.shire.shire_interface.dao.massmsg.WxMassMsgTaskDao;
import com.shire.shire_interface.model.massmsg.WxMassMsgTask;
import com.shire.shire_interface.model.massmsg.WxMassMsgTaskExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 作者:  sll
 * 时间:  2019/8/13 16:04
 */
@Service
public class WxMassMsgTaskService {

    @Resource
    private WxMassMsgTaskDao wxMassMsgTaskDao;

    public Integer insetGroupMsgTask(WxMassMsgTask wxMassMsgTask) {
        return wxMassMsgTaskDao.insertSelective(wxMassMsgTask);
    }

    public List<WxMassMsgTask> getMassMsgTaskHistory(WxMassMsgTaskExample example) {
        return wxMassMsgTaskDao.selectByExample(example);
    }

    public WxMassMsgTask selectByPrimaryKey(Integer taskId) {
        return wxMassMsgTaskDao.selectByPrimaryKey(taskId);
    }

    public Integer updateByPrimaryKey(WxMassMsgTask wxMassMsgTask) {
        return wxMassMsgTaskDao.updateByPrimaryKey(wxMassMsgTask);
    }

    public Integer deleteByPrimaryKey(Integer taskId) {
        return wxMassMsgTaskDao.deleteByPrimaryKey(taskId);
    }
}
